package com.qfedu.dao;

import com.qfedu.pojo.Permission;
import com.qfedu.pojo.Role;
import com.qfedu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IUserDao {
    User login(@Param("username") String username, @Param("password") String password);

    List<Role> getAllRolesByUsername(String username);

    List<Permission> getAllPermissionsByUsernae(String username);
}
